home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2000-10-01 | 2.0 KB | 91 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="5"
- "COUNT"="4"
- "UIPATH"="Program Options\Microsoft Office\MS Office 2000\Visio 2000"
- "NAME"="Visio 2000 Clear Items"
- "VERSION"="1.00"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Clear file list"
- "TEXT 2"="Clear font list"
- "TEXT 3"="Clear stencil list"
- "TEXT 4"="Clear template list"
- "DESCRIPTION 1"="To clear list of files, fonts, stencils and templates used with Visio 2000, click the associated buttons."
- "AUTHOR"="Ojatex@aol.com"
- "CONTACTURL"="http://members.aol.com/ojatex/"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
- "COMMENT 2"="Thanks to CptSiskoX for the tip"
-
- sP="HKCU\Software\Visio\Visio 2000\application\"
-
- Sub Plugin_Initialize
- If RegPathExists(sP)=false then
- Disable()
- end if
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- if ElementIndex=1 then
- for l=0 to 30
- s="LastFile" & l
- v=RegReadValue(sP & s)
-
- If IsEmpty(v)=false then
- Call RegDeleteValue(sP & S)
- end if
- Next
-
- Call MsgInformation("File List Cleared!")
- end if
-
- if ElementIndex=2 then
- for l=0 to 30
- s="LastFont" & l
- v=RegReadValue(sP & s)
-
- If IsEmpty(v)=false then
- Call RegDeleteValue(sP & S)
- end if
- Next
-
- Call MsgInformation("Font List Cleared!")
- end if
-
- if ElementIndex=3 then
- for l=0 to 30
- s="LastStencil" & l
- v=RegReadValue(sP & s)
-
- If IsEmpty(v)=false then
- Call RegDeleteValue(sP & S)
- end if
- Next
-
- Call MsgInformation("Stencil List Cleared!")
- end if
-
- if ElementIndex=4 then
- for l=0 to 30
- s="LastTemplate" & l
- v=RegReadValue(sP & s)
-
- If IsEmpty(v)=false then
- Call RegDeleteValue(sP & S)
- end if
- Next
-
- Call MsgInformation("Template List Cleared!")
- end if
-
-
-
-
-
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-